package com.ruoyi.project.info.controller;

import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.info.domain.AppInfo;
import com.ruoyi.project.info.service.IAppInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 程序配置Controller
 * 
 * @author wyh
 * @date 2024-07-04
 */
@RestController
@RequestMapping("/info/info/api")
public class AppInfoApiController extends BaseController
{
    @Autowired
    private IAppInfoService appInfoService;

    /**
     * 查询程序配置列表
     */
    @GetMapping("/list")
    public TableDataInfo list(AppInfo appInfo)
    {
        startPage();
        List<AppInfo> list = appInfoService.selectAppInfoList(appInfo);
        return getDataTable(list);
    }
}
